import numpy as np
import pandas as pd
arr = np.random.randint(1,20,size=(3,3))
df = pd.DataFrame(arr,columns=['c','b','a'])
print(df)
print(df.sort_index(ascending=False))
print(df.sort_index(axis=1))
